<!-- HTML header for doxygen 1.8.6-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<title>OpenCV: cv::detail::tracking::TrackerContribSampler Class Reference</title>
<link href="../../opencv.ico" rel="shortcut icon" type="image/x-icon" />
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../jquery.js"></script>
<script type="text/javascript" src="../../dynsections.js"></script>
<script type="text/javascript" src="../../tutorial-utils.js"></script>
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../search/searchdata.js"></script>
<script type="text/javascript" src="../../search/search.js"></script>
<script type="text/x-mathjax-config">
  MathJax.Hub.Config({
    extensions: ["tex2jax.js", "TeX/AMSmath.js", "TeX/AMSsymbols.js"],
    jax: ["input/TeX","output/HTML-CSS"],
});
//<![CDATA[
MathJax.Hub.Config(
{
  TeX: {
      Macros: {
          matTT: [ "\\[ \\left|\\begin{array}{ccc} #1 & #2 & #3\\\\ #4 & #5 & #6\\\\ #7 & #8 & #9 \\end{array}\\right| \\]", 9],
          fork: ["\\left\\{ \\begin{array}{l l} #1 & \\mbox{#2}\\\\ #3 & \\mbox{#4}\\\\ \\end{array} \\right.", 4],
          forkthree: ["\\left\\{ \\begin{array}{l l} #1 & \\mbox{#2}\\\\ #3 & \\mbox{#4}\\\\ #5 & \\mbox{#6}\\\\ \\end{array} \\right.", 6],
          forkfour: ["\\left\\{ \\begin{array}{l l} #1 & \\mbox{#2}\\\\ #3 & \\mbox{#4}\\\\ #5 & \\mbox{#6}\\\\ #7 & \\mbox{#8}\\\\ \\end{array} \\right.", 8],
          vecthree: ["\\begin{bmatrix} #1\\\\ #2\\\\ #3 \\end{bmatrix}", 3],
          vecthreethree: ["\\begin{bmatrix} #1 & #2 & #3\\\\ #4 & #5 & #6\\\\ #7 & #8 & #9 \\end{bmatrix}", 9],
          cameramatrix: ["#1 = \\begin{bmatrix} f_x & 0 & c_x\\\\ 0 & f_y & c_y\\\\ 0 & 0 & 1 \\end{bmatrix}", 1],
          distcoeffs: ["(k_1, k_2, p_1, p_2[, k_3[, k_4, k_5, k_6 [, s_1, s_2, s_3, s_4[, \\tau_x, \\tau_y]]]]) \\text{ of 4, 5, 8, 12 or 14 elements}"],
          distcoeffsfisheye: ["(k_1, k_2, k_3, k_4)"],
          hdotsfor: ["\\dots", 1],
          mathbbm: ["\\mathbb{#1}", 1],
          bordermatrix: ["\\matrix{#1}", 1]
      }
  }
}
);
//]]>
</script><script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js"></script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
<link href="../../stylesheet.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<!--#include virtual="/google-search.html"-->
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="../../opencv-logo-small.png"/></td>
  <td style="padding-left: 0.5em;">
   <div id="projectname">OpenCV
   &#160;<span id="projectnumber">4.5.2</span>
   </div>
   <div id="projectbrief">Open Source Computer Vision</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
</script>
<script type="text/javascript" src="../../menudata.js"></script>
<script type="text/javascript" src="../../menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('../../',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="../../d2/d75/namespacecv.html">cv</a></li><li class="navelem"><a class="el" href="../../d2/daf/namespacecv_1_1detail.html">detail</a></li><li class="navelem"><a class="el" href="../../de/d44/namespacecv_1_1detail_1_1tracking.html">tracking</a></li><li class="navelem"><a class="el" href="../../dc/dd7/classcv_1_1detail_1_1tracking_1_1TrackerContribSampler.html">TrackerContribSampler</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="../../da/d4a/classcv_1_1detail_1_1tracking_1_1TrackerContribSampler-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">cv::detail::tracking::TrackerContribSampler Class Reference<div class="ingroups"><a class="el" href="../../d9/df8/group__tracking.html">Tracking API</a> &raquo; <a class="el" href="../../d5/d0b/group__tracking__detail.html">Tracking API implementation details</a></div></div>  </div>
</div><!--header-->
<div class="contents">

<p>Class that manages the sampler in order to select regions for the update the model of the tracker [AAM] Sampling e Labeling. See table I and section III B.  
 <a href="../../dc/dd7/classcv_1_1detail_1_1tracking_1_1TrackerContribSampler.html#details">More...</a></p>

<p><code>#include &lt;opencv2/tracking/tracking_internals.hpp&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a38c9ea275c063738fc2d6028b6bbca77"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../dc/dd7/classcv_1_1detail_1_1tracking_1_1TrackerContribSampler.html#a38c9ea275c063738fc2d6028b6bbca77">TrackerContribSampler</a> ()</td></tr>
<tr class="memdesc:a38c9ea275c063738fc2d6028b6bbca77"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructor.  <a href="#a38c9ea275c063738fc2d6028b6bbca77">More...</a><br /></td></tr>
<tr class="separator:a38c9ea275c063738fc2d6028b6bbca77"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adb612b20545c81461715cd5d1c4d5319"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../dc/dd7/classcv_1_1detail_1_1tracking_1_1TrackerContribSampler.html#adb612b20545c81461715cd5d1c4d5319">~TrackerContribSampler</a> ()</td></tr>
<tr class="memdesc:adb612b20545c81461715cd5d1c4d5319"><td class="mdescLeft">&#160;</td><td class="mdescRight">Destructor.  <a href="#adb612b20545c81461715cd5d1c4d5319">More...</a><br /></td></tr>
<tr class="separator:adb612b20545c81461715cd5d1c4d5319"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a820ba3f99ffc26c8b22521ae055c65a2"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../dc/dd7/classcv_1_1detail_1_1tracking_1_1TrackerContribSampler.html#a820ba3f99ffc26c8b22521ae055c65a2">addTrackerSamplerAlgorithm</a> (<a class="el" href="../../dc/d84/group__core__basic.html#ga1f6634802eeadfd7245bc75cf3e216c2">String</a> trackerSamplerAlgorithmType)</td></tr>
<tr class="memdesc:a820ba3f99ffc26c8b22521ae055c65a2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Add <a class="el" href="../../dc/d27/classcv_1_1detail_1_1tracking_1_1TrackerContribSamplerAlgorithm.html" title="Abstract base class for TrackerContribSamplerAlgorithm that represents the algorithm for the specific...">TrackerContribSamplerAlgorithm</a> in the collection. Return true if sampler is added, false otherwise.  <a href="#a820ba3f99ffc26c8b22521ae055c65a2">More...</a><br /></td></tr>
<tr class="separator:a820ba3f99ffc26c8b22521ae055c65a2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abe67b413e9eab98771e0a2e9cc17e7fa"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../dc/dd7/classcv_1_1detail_1_1tracking_1_1TrackerContribSampler.html#abe67b413e9eab98771e0a2e9cc17e7fa">addTrackerSamplerAlgorithm</a> (<a class="el" href="../../dc/d84/group__core__basic.html#ga6395ca871a678020c4a31fadf7e8cc63">Ptr</a>&lt; <a class="el" href="../../dc/d27/classcv_1_1detail_1_1tracking_1_1TrackerContribSamplerAlgorithm.html">TrackerContribSamplerAlgorithm</a> &gt; &amp;sampler)</td></tr>
<tr class="separator:abe67b413e9eab98771e0a2e9cc17e7fa"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0eec3640644691f43cf28b5f94cd3a45"><td class="memItemLeft" align="right" valign="top">const std::vector&lt; std::pair&lt; <a class="el" href="../../dc/d84/group__core__basic.html#ga1f6634802eeadfd7245bc75cf3e216c2">String</a>, <a class="el" href="../../dc/d84/group__core__basic.html#ga6395ca871a678020c4a31fadf7e8cc63">Ptr</a>&lt; <a class="el" href="../../dc/d27/classcv_1_1detail_1_1tracking_1_1TrackerContribSamplerAlgorithm.html">TrackerContribSamplerAlgorithm</a> &gt; &gt; &gt; &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../dc/dd7/classcv_1_1detail_1_1tracking_1_1TrackerContribSampler.html#a0eec3640644691f43cf28b5f94cd3a45">getSamplers</a> () const</td></tr>
<tr class="memdesc:a0eec3640644691f43cf28b5f94cd3a45"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return the collection of the <a class="el" href="../../dc/d27/classcv_1_1detail_1_1tracking_1_1TrackerContribSamplerAlgorithm.html" title="Abstract base class for TrackerContribSamplerAlgorithm that represents the algorithm for the specific...">TrackerContribSamplerAlgorithm</a>.  <a href="#a0eec3640644691f43cf28b5f94cd3a45">More...</a><br /></td></tr>
<tr class="separator:a0eec3640644691f43cf28b5f94cd3a45"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3cde2ed9620b7298b474d3620db7488b"><td class="memItemLeft" align="right" valign="top">const std::vector&lt; <a class="el" href="../../d3/d63/classcv_1_1Mat.html">Mat</a> &gt; &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../dc/dd7/classcv_1_1detail_1_1tracking_1_1TrackerContribSampler.html#a3cde2ed9620b7298b474d3620db7488b">getSamples</a> () const</td></tr>
<tr class="memdesc:a3cde2ed9620b7298b474d3620db7488b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return the samples from all <a class="el" href="../../dc/d27/classcv_1_1detail_1_1tracking_1_1TrackerContribSamplerAlgorithm.html" title="Abstract base class for TrackerContribSamplerAlgorithm that represents the algorithm for the specific...">TrackerContribSamplerAlgorithm</a>, <a class="el" href="../../d0/de3/citelist.html#CITEREF_AAM">[210]</a> Fig. 1 variable Sk.  <a href="#a3cde2ed9620b7298b474d3620db7488b">More...</a><br /></td></tr>
<tr class="separator:a3cde2ed9620b7298b474d3620db7488b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae13da0b9f0ee6c4252489fb3ea461842"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../dc/dd7/classcv_1_1detail_1_1tracking_1_1TrackerContribSampler.html#ae13da0b9f0ee6c4252489fb3ea461842">sampling</a> (const <a class="el" href="../../d3/d63/classcv_1_1Mat.html">Mat</a> &amp;image, <a class="el" href="../../dc/d84/group__core__basic.html#ga11d95de507098e90bad732b9345402e8">Rect</a> boundingBox)</td></tr>
<tr class="memdesc:ae13da0b9f0ee6c4252489fb3ea461842"><td class="mdescLeft">&#160;</td><td class="mdescRight">Computes the regions starting from a position in an image.  <a href="#ae13da0b9f0ee6c4252489fb3ea461842">More...</a><br /></td></tr>
<tr class="separator:ae13da0b9f0ee6c4252489fb3ea461842"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Class that manages the sampler in order to select regions for the update the model of the tracker [AAM] Sampling e Labeling. See table I and section III B. </p>
<p>Class that manages the sampler in order to select regions for the update the model of the tracker</p>
<p><a class="el" href="../../d0/de3/citelist.html#CITEREF_AAM">[210]</a> Sampling e Labeling. See table I and section III B</p>
<p><a class="el" href="../../dc/dd7/classcv_1_1detail_1_1tracking_1_1TrackerContribSampler.html" title="Class that manages the sampler in order to select regions for the update the model of the tracker [AA...">TrackerContribSampler</a> is an aggregation of <a class="el" href="../../dc/d27/classcv_1_1detail_1_1tracking_1_1TrackerContribSamplerAlgorithm.html" title="Abstract base class for TrackerContribSamplerAlgorithm that represents the algorithm for the specific...">TrackerContribSamplerAlgorithm</a> </p><dl class="section see"><dt>See also</dt><dd><a class="el" href="../../dc/d27/classcv_1_1detail_1_1tracking_1_1TrackerContribSamplerAlgorithm.html" title="Abstract base class for TrackerContribSamplerAlgorithm that represents the algorithm for the specific...">TrackerContribSamplerAlgorithm</a> </dd></dl>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="a38c9ea275c063738fc2d6028b6bbca77"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a38c9ea275c063738fc2d6028b6bbca77">&#9670;&nbsp;</a></span>TrackerContribSampler()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">cv::detail::tracking::TrackerContribSampler::TrackerContribSampler </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Constructor. </p>

</div>
</div>
<a id="adb612b20545c81461715cd5d1c4d5319"></a>
<h2 class="memtitle"><span class="permalink"><a href="#adb612b20545c81461715cd5d1c4d5319">&#9670;&nbsp;</a></span>~TrackerContribSampler()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">cv::detail::tracking::TrackerContribSampler::~TrackerContribSampler </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Destructor. </p>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a820ba3f99ffc26c8b22521ae055c65a2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a820ba3f99ffc26c8b22521ae055c65a2">&#9670;&nbsp;</a></span>addTrackerSamplerAlgorithm() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool cv::detail::tracking::TrackerContribSampler::addTrackerSamplerAlgorithm </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga1f6634802eeadfd7245bc75cf3e216c2">String</a>&#160;</td>
          <td class="paramname"><em>trackerSamplerAlgorithmType</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Add <a class="el" href="../../dc/d27/classcv_1_1detail_1_1tracking_1_1TrackerContribSamplerAlgorithm.html" title="Abstract base class for TrackerContribSamplerAlgorithm that represents the algorithm for the specific...">TrackerContribSamplerAlgorithm</a> in the collection. Return true if sampler is added, false otherwise. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">trackerSamplerAlgorithmType</td><td>The <a class="el" href="../../dc/d27/classcv_1_1detail_1_1tracking_1_1TrackerContribSamplerAlgorithm.html" title="Abstract base class for TrackerContribSamplerAlgorithm that represents the algorithm for the specific...">TrackerContribSamplerAlgorithm</a> name</td></tr>
  </table>
  </dd>
</dl>
<p>The modes available now:</p><ul>
<li>"CSC" &ndash; Current State Center</li>
<li>"CS" &ndash; Current State</li>
<li>"PF" &ndash; Particle Filtering</li>
</ul>
<p>Example TrackerContribSamplerAlgorithm::addTrackerContribSamplerAlgorithm : : </p><div class="fragment"><div class="line"><a class="code" href="../../d4/d41/namespacecv_1_1dynafu.html#afe352b7045bf5f1496c2d8dd2a09a764">TrackerContribSamplerCSC::Params</a> CSCparameters;</div><div class="line">Ptr&lt;TrackerContribSamplerAlgorithm&gt; CSCSampler = <span class="keyword">new</span> TrackerContribSamplerCSC( CSCparameters );</div><div class="line"></div><div class="line"><span class="keywordflow">if</span>( !sampler-&gt;addTrackerSamplerAlgorithm( CSCSampler ) )</div><div class="line">  <span class="keywordflow">return</span> <span class="keyword">false</span>;</div><div class="line"></div><div class="line"><span class="comment">//or add CSC sampler with default parameters</span></div><div class="line"><span class="comment">//sampler-&gt;addTrackerSamplerAlgorithm( &quot;CSC&quot; );</span></div></div><!-- fragment --> <dl class="section note"><dt>Note</dt><dd>If you use the second method, you must initialize the <a class="el" href="../../dc/d27/classcv_1_1detail_1_1tracking_1_1TrackerContribSamplerAlgorithm.html" title="Abstract base class for TrackerContribSamplerAlgorithm that represents the algorithm for the specific...">TrackerContribSamplerAlgorithm</a> </dd></dl>

</div>
</div>
<a id="abe67b413e9eab98771e0a2e9cc17e7fa"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abe67b413e9eab98771e0a2e9cc17e7fa">&#9670;&nbsp;</a></span>addTrackerSamplerAlgorithm() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool cv::detail::tracking::TrackerContribSampler::addTrackerSamplerAlgorithm </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga6395ca871a678020c4a31fadf7e8cc63">Ptr</a>&lt; <a class="el" href="../../dc/d27/classcv_1_1detail_1_1tracking_1_1TrackerContribSamplerAlgorithm.html">TrackerContribSamplerAlgorithm</a> &gt; &amp;&#160;</td>
          <td class="paramname"><em>sampler</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">sampler</td><td>The <a class="el" href="../../dc/d27/classcv_1_1detail_1_1tracking_1_1TrackerContribSamplerAlgorithm.html" title="Abstract base class for TrackerContribSamplerAlgorithm that represents the algorithm for the specific...">TrackerContribSamplerAlgorithm</a> </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a0eec3640644691f43cf28b5f94cd3a45"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0eec3640644691f43cf28b5f94cd3a45">&#9670;&nbsp;</a></span>getSamplers()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const std::vector&lt;std::pair&lt;<a class="el" href="../../dc/d84/group__core__basic.html#ga1f6634802eeadfd7245bc75cf3e216c2">String</a>, <a class="el" href="../../dc/d84/group__core__basic.html#ga6395ca871a678020c4a31fadf7e8cc63">Ptr</a>&lt;<a class="el" href="../../dc/d27/classcv_1_1detail_1_1tracking_1_1TrackerContribSamplerAlgorithm.html">TrackerContribSamplerAlgorithm</a>&gt; &gt; &gt;&amp; cv::detail::tracking::TrackerContribSampler::getSamplers </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Return the collection of the <a class="el" href="../../dc/d27/classcv_1_1detail_1_1tracking_1_1TrackerContribSamplerAlgorithm.html" title="Abstract base class for TrackerContribSamplerAlgorithm that represents the algorithm for the specific...">TrackerContribSamplerAlgorithm</a>. </p>

</div>
</div>
<a id="a3cde2ed9620b7298b474d3620db7488b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3cde2ed9620b7298b474d3620db7488b">&#9670;&nbsp;</a></span>getSamples()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const std::vector&lt;<a class="el" href="../../d3/d63/classcv_1_1Mat.html">Mat</a>&gt;&amp; cv::detail::tracking::TrackerContribSampler::getSamples </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Return the samples from all <a class="el" href="../../dc/d27/classcv_1_1detail_1_1tracking_1_1TrackerContribSamplerAlgorithm.html" title="Abstract base class for TrackerContribSamplerAlgorithm that represents the algorithm for the specific...">TrackerContribSamplerAlgorithm</a>, <a class="el" href="../../d0/de3/citelist.html#CITEREF_AAM">[210]</a> Fig. 1 variable Sk. </p>

</div>
</div>
<a id="ae13da0b9f0ee6c4252489fb3ea461842"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae13da0b9f0ee6c4252489fb3ea461842">&#9670;&nbsp;</a></span>sampling()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::detail::tracking::TrackerContribSampler::sampling </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="../../d3/d63/classcv_1_1Mat.html">Mat</a> &amp;&#160;</td>
          <td class="paramname"><em>image</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga11d95de507098e90bad732b9345402e8">Rect</a>&#160;</td>
          <td class="paramname"><em>boundingBox</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Computes the regions starting from a position in an image. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">image</td><td>The current frame </td></tr>
    <tr><td class="paramname">boundingBox</td><td>The bounding box from which regions can be calculated </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>opencv2/tracking/<a class="el" href="../../d3/de1/tracking__internals_8hpp.html">tracking_internals.hpp</a></li>
</ul>
</div><!-- contents -->
<!-- HTML footer for doxygen 1.8.6-->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Fri Apr 2 2021 11:36:46 for OpenCV by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="../../doxygen.png" alt="doxygen"/>
</a> 1.8.13
</small></address>
<script type="text/javascript">
//<![CDATA[
addTutorialsButtons();
//]]>
</script>
</body>
</html>
